/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.admin.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.message.dto.DocTypeDTO;
import com.fuyao.cloud.admin.api.entity.DocType;

import java.util.List;

/**
 * 文档配置
 *
 * @author liyue
 * @date 2022-04-24 15:47:04
 */
public interface DocTypeService extends IService<DocType> {

    /**
     * 获取所有的文种类型
     *
     * @param queryWrapper 条件构造器
     * @return 文种类型集合DTO
     */
    List<DocTypeDTO> getAllDocTypeOption(QueryWrapper<DocType> queryWrapper);


    /**
     * 根据编码查询文种类型。
     *
     * @param code 编码
     * @return 文种对象
     */
    DocType getDocTypeByCode(String code);

}
